package cn.sumpu.app.coolsk.dao;

import java.util.List;
import java.util.Map;

import cn.sumpu.app.coolsk.domain.Member;
import cn.sumpu.app.coolsk.domain.MemberDetail;
import cn.sumpu.app.coolsk.domain.MemberTicker;
import cn.sumpu.app.coolsk.domain.OutUser;
import cn.sumpu.app.coolsk.exception.AppBusinessException;



public interface MemberDao {
	 /**
	  * 
	  * @param coolskMember
	  * @throws AppBusinessException
	  */
	public void insert(Member member) throws AppBusinessException;
	 /**
	  * 
	  * @param coolskMember
	  * @throws AppBusinessException
	  */
	public void update(Member member)throws AppBusinessException;
	/**
	 * 
	 * @param map
	 * @return
	 * @throws AppBusinessException
	 */
	public Member getMemberByMap(Map<String, Object> map) throws AppBusinessException;
	
	public void insert(OutUser outUser) throws AppBusinessException;
	
	public OutUser checkOutUser(Map<String, Object> map)throws AppBusinessException;
	/**
	 * 更新资料
	 */
	public void updateMemberDetail(MemberDetail memberDetail)throws AppBusinessException;
	/**
	 * 
	 */
	public void insertMemberInfo(MemberDetail memberDetail)throws AppBusinessException;
	public MemberDetail getMemberDetailByMap(Map<String, Object> map) throws AppBusinessException;
	//
	public void insterMemberTicker(MemberTicker memberTicker)throws AppBusinessException;
	//
	public void updateMemberTicker(MemberTicker memberTicker)throws AppBusinessException;
	//
	public List<MemberTicker> getTickerListById(Map<String, Object> map) throws AppBusinessException;
	//
	public void deleteTicker(Map<String, Object> map)throws AppBusinessException;
	
	/**
	 * author BruceZhang
	 * @param map
	 * @return	查询用户列表
	 * @throws AppBusinessException
	 */
	List<Member> getMemberList(Map<String, Object> map)throws AppBusinessException;
	//查询用户列表总条数
	Integer getMemberListCount(Map<String, Object> map)throws AppBusinessException;
	
}
